package com.nuc.dip2;

/**
 * Time    : 2023/3/24 21:58
 * Author  : 王摇摆
 * FileName: Benz.java
 * Software: IntelliJ IDEA 2020.2.2
 * Blog    ：https://blog.csdn.net/weixin_44943389?type=blog
 */

public class QQ implements ICar {
    private String carName;

    public QQ(String carName) {
        this.carName = carName;
    }

    public String getCarName() {
        return carName;
    }

    @Override
    public void run(String driverName) {
        System.out.println("司机 "+driverName+" 正在驾驶 "+this.getCarName()+"!");
    }
}
